//
//  SETank.h
//  Space Explorer
//
//  Created by Yann Blaudin de Thé on 13/05/13.
//  Copyright (c) 2013 TeaTime. All rights reserved.
//

#ifndef __Space_Explorer__SETank__
#define __Space_Explorer__SETank__

#include <iostream>
#include <vector>

#include "SEEngine.h"


class SETank {
private:
    std::vector<SEEngine*> _engines;
    double _m_struct, _m_ox, _m_red;
    double _ox_mol_mass, _red_mol_mass;
    double _stoechio;
    
public:
    // stoechio est le rapport entre le coeff stoechio du reducteur et du coeff stoechio de l'oxydant
    SETank(double m_struct, double m_ox, double m_red, double mol_mass_ox, double mol_mass_red, double stoechio);
    ~SETank();
    
    // http://en.wikipedia.org/wiki/Mass_ratio
    double getMassRatio() const;
    
    double getTotalFlowRate() const;
    
    void update(double dt);
    
    double getTotalMass() const;

};

#endif /* defined(__Space_Explorer__SETank__) */
